package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * author： ccm
 * time： 2017/7/4.
 * description：
 */

public  class CharterFlightOrder implements Parcelable {
    private String id;

    private String sid;

    private String departureTime;

    private Integer number;

    private String departureAirportId;

    private String departureAirportName;

    private String destinationAirportId;

    private String destinationAirportName;

    private String budget;

    private Boolean isStopover;

    private String note;

    private String createdDatetime;

    private String updatedDatetime;

    private String orderId;

    // 订单列表显示的订单名称
    private String orderName;

    // 订单图片
    private String cover;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getDepartureTime() {
        return departureTime;
    }

    public void setDepartureTime(String departureTime) {
        this.departureTime = departureTime;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getDepartureAirportId() {
        return departureAirportId;
    }

    public void setDepartureAirportId(String departureAirportId) {
        this.departureAirportId = departureAirportId;
    }

    public String getDepartureAirportName() {
        return departureAirportName;
    }

    public void setDepartureAirportName(String departureAirportName) {
        this.departureAirportName = departureAirportName;
    }

    public String getDestinationAirportId() {
        return destinationAirportId;
    }

    public void setDestinationAirportId(String destinationAirportId) {
        this.destinationAirportId = destinationAirportId;
    }

    public String getDestinationAirportName() {
        return destinationAirportName;
    }

    public void setDestinationAirportName(String destinationAirportName) {
        this.destinationAirportName = destinationAirportName;
    }

    public String getBudget() {
        return budget;
    }

    public void setBudget(String budget) {
        this.budget = budget;
    }

    public Boolean getStopover() {
        return isStopover;
    }

    public void setStopover(Boolean stopover) {
        isStopover = stopover;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getCreatedDatetime() {
        return createdDatetime;
    }

    public void setCreatedDatetime(String createdDatetime) {
        this.createdDatetime = createdDatetime;
    }

    public String getUpdatedDatetime() {
        return updatedDatetime;
    }

    public void setUpdatedDatetime(String updatedDatetime) {
        this.updatedDatetime = updatedDatetime;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.sid);
        dest.writeString(this.departureTime);
        dest.writeValue(this.number);
        dest.writeString(this.departureAirportId);
        dest.writeString(this.departureAirportName);
        dest.writeString(this.destinationAirportId);
        dest.writeString(this.destinationAirportName);
        dest.writeString(this.budget);
        dest.writeValue(this.isStopover);
        dest.writeString(this.note);
        dest.writeString(this.createdDatetime);
        dest.writeString(this.updatedDatetime);
        dest.writeString(this.orderId);
        dest.writeString(this.orderName);
        dest.writeString(this.cover);
    }

    public CharterFlightOrder() {
    }

    protected CharterFlightOrder(Parcel in) {
        this.id = in.readString();
        this.sid = in.readString();

        long tmpDepartureTime = in.readLong();
        this.departureTime = in.readString();

        this.number = (Integer) in.readValue(Integer.class.getClassLoader());
        this.departureAirportId = in.readString();
        this.departureAirportName = in.readString();
        this.destinationAirportId = in.readString();
        this.destinationAirportName = in.readString();
        this.budget = in.readString();
        this.isStopover = (Boolean) in.readValue(Boolean.class.getClassLoader());
        this.note = in.readString();
        long tmpCreatedDatetime = in.readLong();
        this.createdDatetime = in.readString();

        long tmpUpdatedDatetime = in.readLong();
        this.updatedDatetime = in.readString();

        this.orderId = in.readString();
        this.orderName = in.readString();
        this.cover = in.readString();
    }

    public static final Creator<CharterFlightOrder> CREATOR = new Creator<CharterFlightOrder>() {
        @Override
        public CharterFlightOrder createFromParcel(Parcel source) {
            return new CharterFlightOrder(source);
        }

        @Override
        public CharterFlightOrder[] newArray(int size) {
            return new CharterFlightOrder[size];
        }
    };
}